package com.tree.redisson.entity;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author tree
 * @since 2019-05-28
 */
@Data
@Accessors(chain = true)
@KeySequence("id")
@TableName("t_user")
public class User{

    private static final long serialVersionUID = 1L;

    private int id;
    /**
     * 姓名
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * -1 删除
     * 0 正常
     */
    private int status;

    public User() {
    }

    public User(String name, int status) {
        this.name = name;
        this.status = status;
    }

    public User(int id, String name, int status) {
        this.id = id;
        this.name = name;
        this.status = status;
    }
}
